package com.ysd.lis.entity.callNum;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Timestamp;

/***
 *@title 排队叫号业务表
 *@author WH
 *@version 1.0.0
 *@create 2025/5/27 10:00
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("CALL_BUSINESS")
@Entity
@Table(name = "CALL_BUSINESS")
public class CallBusiness extends BaseEntityJpa {

    /**
     * 申请时间
     */
    @TableField("REQ_TIME")
    @Column(name = "REQ_TIME")
    private Timestamp reqTime;

    /**
     * 业务号
     */
    @TableField("BUSINESS_NO")
    @Column(name = "BUSINESS_NO")
    private String businessNo;


    /**
     * 窗口code
     */
    @TableField("WIN_CODE")
    @Column(name = "WIN_CODE")
    private String winCode;

    /**
     * 窗口code
     */
    @TableField("WIN_NAME")
    @Column(name = "WIN_NAME")
    private String winName;

    /**
     * 患者姓名
     */
    @TableField("USER_NAME")
    @Column(name = "USER_NAME")
    private String userName;

    /**
     * 标本类型编码
     */
    @TableField("SAMPLE_TYPE_CODE")
    @Column(name = "SAMPLE_TYPE_CODE")
    private String sampleTypeCode;
    
    /**
     * 处理时间(min)
     */
    @TableField("AVG_TIME")
    @Column(name = "AVG_TIME")
    private Integer avgTime;

    /**
     * 5:未检验 10:完成
     */
    @TableField("STATE")
    @Column(name = "STATE")
    private String state;
}
